import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import S3ConfigDialog from '../containers/S3ConfigDialog';
import './Home.css';


export default class Home extends Component {
    state = {
        open: false
    };

    onClose = () => {
        this.setState({ open: false });
    };

    openDialog = () => {
        this.setState({ open: true });
    };

    render() {
        return (
            <div>
                <Button onClick={this.openDialog}>Config</Button>
                <S3ConfigDialog open={this.state.open} onClose={this.onClose}/>
                <S3MainPage/>
            </div>
        );
    }
}
